﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Database.Interface.Migrations
{
    /// <inheritdoc />
    public partial class _0804work : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DeepType",
                table: "Suppliers");

            migrationBuilder.DropColumn(
                name: "Production_License",
                table: "Processing_Infomations");

            migrationBuilder.AlterColumn<string>(
                name: "Batch_Number",
                table: "Suppliers",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AlterColumn<string>(
                name: "Work_Team",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AlterColumn<string>(
                name: "Responsible_Person",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AddColumn<string>(
                name: "Production_License",
                table: "Company_Informations",
                type: "nvarchar(max)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Production_License",
                table: "Company_Informations");

            migrationBuilder.AlterColumn<string>(
                name: "Batch_Number",
                table: "Suppliers",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AddColumn<int>(
                name: "DeepType",
                table: "Suppliers",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AlterColumn<string>(
                name: "Work_Team",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "Responsible_Person",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Production_License",
                table: "Processing_Infomations",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");
        }
    }
}
